import ActorTypeUtil from "@/ActorTypeUtil";
import UnitUtil from "@/UnitUtil";
import {l_挑战装备怪} from "../../_sl_editor/l_挑战装备怪";
import {l_挑战boss} from "../../_sl_editor/l_挑战boss";

export default class 挑战门票 {


    constructor() {


        let actorType = ActorTypeUtil.getActorType("挑战装备");
        /** 当从商店购买这个演员时（比如购买一个演员物品）buyingUnit=购买者 */
        actorType.onBuy = (actor, buyingUnit) => {
            UnitUtil.transfer(buyingUnit, l_挑战装备怪[0].x, l_挑战装备怪[0].y);
            actor.destroy()
        }
        actorType = ActorTypeUtil.getActorType("挑战BOss");
        /** 当从商店购买这个演员时（比如购买一个演员物品）buyingUnit=购买者 */
        actorType.onBuy = (actor, buyingUnit) => {
            UnitUtil.transfer(buyingUnit, l_挑战boss[0].x, l_挑战boss[0].y);
            actor.destroy()
        }
        //

    }


}